package com.cw.common.constant;

/**
 * @Author cc
 * @Date 2020/4/13 18:03
 * @Version 1.0
 */
public class RedisConstant {

    /**
     * redis 存储websocket登录用户
     */
    public static final String wsLoginUser = "hleass:wsLoginUser";

    /**
     * reids  存储字典树
     */
    public static final String allBaseDicts = "hleass:allBaseDicts";

    /**
     * redis 存储菜单
     */
    public static final String menu = "hleass:menu:";
    /**
     * 组织下的人
     */
    public static final String PEOPLE_IN_THE_ORGANIZATION = "getHeelerResultUserId_";

    public static final String CW_TOKEN = "cw:login:token:";

    public static final String EWELL_TOKEN = "ewell:login:token:";

    public static String getCwToken(String staffCode){
        return CW_TOKEN + staffCode;
    }

    public static String getEwellToken(String staffCode){
        return EWELL_TOKEN + staffCode;
    }
}
